﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ArmyCreator.ViewModel
{
    public class ArmyViewModel : ModelObject
    {
        public string Name
        {
            get { return GetValue<string>("name", null); }
            set { SetValue("name", value); }
        }

        public string Description
        {
            get { return GetValue<string>("description", null); }
            set { SetValue("description", value); }
        }

        public int Points
        {
            get { return GetValue<int>("points", 0); }
            set { SetValue("points", value); }
        }

        public CategoryViewModel[] Categories
        {
            get { return GetValue<CategoryViewModel[]>("categories", new CategoryViewModel[0]); }
            set { SetValue("categories", value); }
        }
    }
}
